<?php
	include("addnews.php");
	$new=new news();
		$new->title="xin chao";
		$new->head="xin chao";
		$new->content="xin chao";
		$new->image="xin chao";
		$new->alias=change_alias($new->title);
		if(isset($_POST['status']))
			$new->status=1;
		else $new->status=0;
		allnews::Insert($new);
	//$sql="INSERT INTO `nv3_vi_news_rows` (`id`, `listcatid`, `topicid`, `admin_id`, `author`, `sourceid`, `addtime`, `edittime`, `status`, `publtime`, `exptime`, `archive`, `title`, `alias`, `hometext`, `homeimgfile`, `homeimgalt`, `homeimgthumb`, `imgposition`, `bodytext`, `copyright`, `inhome`, `allowed_comm`, `allowed_rating`, `ratingdetail`, `allowed_send`, `allowed_print`, `allowed_save`, `hitstotal`, `hitscm`, `hitslm`, `keywords`) VALUES (NULL, '1', '0', '0', 'admin', '0', '0', '0', '1', '0', '0', '0', 'chem', 'chem', 'chem', '3.jpg', '3.jpg', '3.jpg', '1', 'chem', '0', '0', '0', '0', '', '0', '0', '0', '0', '0', '0', 'chem')";
//	$db->sql_query($sql);
	$contents="xin chao";
	include ( NV_ROOTDIR . "/includes/header.php" );
	echo nv_admin_theme($contents);
	include ( NV_ROOTDIR . "/includes/footer.php" );
	
?>